package com.yj.cloudnote.controller;

import com.yj.cloudnote.service.MongoTestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping(value = "/mongoTest")
public class MongoTestController {
    @Autowired
    private MongoTestService mongoTestService;

    @RequestMapping(value = "/insert")
    @ResponseBody
    public String mongoTestInsert(){
        return mongoTestService.insertTest();
    }
}
